﻿using DLL.NET50.DB.MS.AdviceAndDrug;
using DLL.NET60.DB.MS.Entity.DTO;
using DLL.NetStandard.FlushRobot.MS.Entity.Param;

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security.Cryptography;
using System.Text;
using System.Windows;

namespace DLL.FlushRobot.MS.Run
{
    public class CMultyLoopStations : ICloneable
    {
        public DTO_adi_dic_drug UsedDrug = new DTO_adi_dic_drug();
        public DTO_adi_dic_drug UsedSolvent = new DTO_adi_dic_drug();
        public CMS_DeviceConfigParam DeviceConfig = new CMS_DeviceConfigParam();//设备参数
        public List<COneLoopStations> MultyLoopStation = new List<COneLoopStations>();

        public CMultyLoopStations()
        {
            UsedDrug.InitializeFlushGroup();
            UsedDrug.InitializeFlushParam();
            UsedSolvent.InitializeFlushGroup();
            UsedSolvent.InitializeFlushParam();
        }

        public object Clone()
        {
            CMultyLoopStations multyLoop = new CMultyLoopStations();

            multyLoop.UsedSolvent = (DTO_adi_dic_drug)this.UsedSolvent.Clone();
            multyLoop.UsedDrug = (DTO_adi_dic_drug)this.UsedDrug.Clone();
            multyLoop.DeviceConfig = this.DeviceConfig;
            for (int i = 0; i < MultyLoopStation.Count; i++)
            {
                multyLoop.MultyLoopStation.Add((COneLoopStations)this.MultyLoopStation[i].Clone());
            }
            return multyLoop;
        }
    }
}